import request from '../utils/request'

// 添加到购物车
export function addCart (params) {
  return request.post('/cart/add', params)
}

// 购物车页面渲染
export function cartList (params) {
  return request.post('/cart/list', params)
}

// 删除购物车单条数据
export function cartRemove (params) {
  return request.post('/cart/remove', params)
}

//  更新购物车的数量
export function updateNum (params) {
  return request.post('/cart/updatenum', params)
}

// 更新所有购物车数据的选中状态
export function selectAll (params) {
  return request.post('/cart/selectall', params)
}

// 更新当前购物车数据的选中状态
export function selectOne (params) {
  return request.post('/cart/selectone', params)
}

// 猜你喜欢
export function recommendList (params) {
  return request.get('/pro/recommendlist', params)
}
